xen: credit2: non Credit2 pCPUs are ok during shutdown/suspend.
authorDario Faggioli <dario.faggioli@citrix.com>
Sat, 28 Jan 2017 01:42:22 +0000 (02:42 +0100)
committerGeorge Dunlap <george.dunlap@citrix.com>
Wed, 1 Feb 2017 14:44:51 +0000 (14:44 +0000)
commitad5808d9057248e7879cf375662f0a449fff7005
tree00210cf0215a6c778420827a421fe78296f825d7
parentbd3f7a557abb05bc20d70ac2ec7dfb35458db252
xen: credit2: non Credit2 pCPUs are ok during shutdown/suspend.

Commit 7478ebe1602e6 ("xen: credit2: fix shutdown/suspend
when playing with cpupools"), while doing the right thing
for actual code, forgot to update the ASSERT()s accordingly,
in csched2_vcpu_migrate().

In fact, as stated there already, during shutdown/suspend,
we must allow a Credit2 vCPU to temporarily migrate to a
non Credit2 BSP, without any ASSERT() triggering.

Move them down, after the check for whether or not we are
shutting down, where the assumption that the pCPU must be
valid Credit2 ones, is valid.

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
xen/common/sched_credit2.c